package sk.vasicek.drinkagent.domain;

import java.util.Date;

public class DrinkEntry {
	public static final String ALCOHOL_CONCENTRATION = "drink_entry_concentration";
	public static final String VOLUME = "drink_entry_volume";
	public static final String DRINK_NAME = "drink_entry_name";
	public static final String DRINK_NOTE = "drink_entry_note";
	public static final String DRINK_ID = "drink_entry_id";
	public static final String DRINK_PRICE = "drink_entry_price";
	public static final String DRINK_CREATED = "drink_entry_time";

	private Integer id;
	private double concentration;
	private double volume;
	private double price;
	private Date timeDrinked;
	private String name = "";
	private String note = "";

	public DrinkEntry(Drink drink) {
		this.concentration = drink.getConcentration();
		this.volume = drink.getVolume();
		this.timeDrinked = drink.getTimeDrinked();
	}
	
	public DrinkEntry(CustomDrink drink,Date timeDrinked) {
		this.concentration = drink.getConcentration();
		this.volume = drink.getVolume();
		this.name = drink.getName();
		this.note = drink.getNote();
		this.price = drink.getPrice();
		this.timeDrinked = timeDrinked;
	}
	
	public DrinkEntry(double concentration, double volume) {
		this.concentration = concentration;
		this.volume = volume;
		this.timeDrinked = new Date();
	}

	public DrinkEntry(double concentration, double volume, String name, String note) {
		this.concentration = concentration;
		this.volume = volume;
		this.name = name;
		this.note = note;
		this.timeDrinked = new Date();
	}
	
	public DrinkEntry(Integer id,double concentration, double volume, String name, String note, double price, Date timeDrinked) {
		this.id = id;
		this.concentration = concentration;
		this.volume = volume;
		this.name = name;
		this.note = note;
		this.price = price;
		this.timeDrinked = timeDrinked;
	}

	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public double getConcentration() {
		return concentration;
	}

	public void setConcentration(double concentration) {
		this.concentration = concentration;
	}

	public double getVolume() {
		return volume;
	}

	public void setVolume(double volume) {
		this.volume = volume;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public Date getTimeDrinked() {
		return timeDrinked;
	}

	public void setTimeDrinked(Date timeDrinked) {
		this.timeDrinked = timeDrinked;
	}
}
